const enum Direction {
    up = 10,
    down,
    left,
    right
} 
console.log(Direction.up);
// console.log(Direction[0]);
var value = 10

if(value == Direction.up){
    console.log('yes');
}

